﻿#include "admin_window.h"
#include "A-showhome.h"
#include <QApplication>
#include "buss_main.h"
int main(int argc, char *argv[]) {
    QApplication a(argc, argv);
   
    ShowHome s;
    
    // 默认显示ShowHome界面
   s.show();
    QScreen *screen = QGuiApplication::primaryScreen();
    QRect screenGeometry = screen->geometry();
    int width = screenGeometry.width() * 0.75;
    int height = screenGeometry.height() * 0.85;

    // 设置窗口大小并保持居中
    s.resize(width, height);
    s.move(screenGeometry.center() - s.rect().center() - QPoint(0, 70));
    
    // 如果需要显示管理界面，可以注释上面的s.show()，取消注释下面的m.show()
     // 创建两个主窗口，根据需要显示
   // AdminWindow m;
  // m.show();
    
//    Buss_main b(1,"zhangsna");
//    b.show();
    return a.exec();
    
    
}
